package funjava;

import java.util.ArrayList;
import java.util.Random;

/**
 * Created by judasnow on 5/12/16.
 */
public class C1_11 {
    public static ArrayList c1_11 () {
        ArrayList res = new ArrayList();
        ArrayList arr = new ArrayList();
        for(int i=0;i<49;i++) {
            arr.add(i, i);
        }

        Random r = new Random();
        for (int j=0;j<6;j++) {
            int randomIndex = Math.abs(r.nextInt()) % (48-j);
            res.add(j, arr.get(randomIndex));
            arr.remove(randomIndex);
            System.out.println(randomIndex);
        }

        return res;
    }
    public static void main (String[] args) {
        System.out.print(c1_11());
    }
}
